package com.pinda.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.pinda.dispatch.entity.PdOrderClassifyOrder;
import com.pinda.mapper.OrderClassifyOrderMapper;
import com.pinda.service.IOrderClassifyOrderService;
import org.springframework.stereotype.Service;

@Service
public class OrderClassifyOrderServiceImpl extends ServiceImpl<OrderClassifyOrderMapper, PdOrderClassifyOrder> implements IOrderClassifyOrderService {
    @Override
    public String getClassifyId(String orderId) {
        LambdaQueryWrapper<PdOrderClassifyOrder> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(PdOrderClassifyOrder::getOrderId, orderId);

        PdOrderClassifyOrder entity = this.baseMapper.selectOne(wrapper);

        return entity.getOrderClassifyId();
    }
}
